/**
 * ColumnDefinedTemplateEntityRes
 */
export interface ColumnDefinedTemplateEntityRes {
  /**
   * 自定义字段的信息，json格式， 有源数据与实体字段 的映射关系
   */
  config?: string;
  createTime?: Date;
  creator?: string;
  creatorName?: string;
  deleted?: string;
  i18nColumnMap?: { [key: string]: { [key: string]: any } };
  id?: string;
  modifier?: string;
  modifierName?: string;
  modifyTime?: Date;
  /**
   * 模板名称
   */
  name?: string;
  /**
   * 关联的模板ID
   */
  sourceTemplateId?: string;
  /**
   * 目标数据ID，例如项目类型ID、任务类型ID
   */
  targetDataId?: string;
  /**
   * 目标类型Enum：项目类型、任务类型
   */
  targetType?: TargetType;
  tenantId?: string;
  [property: string]: any;
}

/**
 * AssociateTargetTypeDto
 * 关联绑定
 */
export interface AssociateTargetTypeDto {
  /**
   * 目标数据ID。例项目类型ID  或 任务类型ID
   */
  targetDataId?: string;
  /**
   * 目标类型, 注意接收项目类型与任务类型
   */
  targetType?: TargetType;
  /**
   * 模板id
   */
  templateId?: string;
  [property: string]: any;
}

/**
 * 目标类型Enum：项目类型、任务类型
 */
export enum TargetType {
  Dataflow = "DATAFLOW",
  Favorite = "FAVORITE",
  Notice = "NOTICE",
  Project = "PROJECT",
  ProjectRole = "PROJECT_ROLE",
  ProjectType = "PROJECT_TYPE",
  Reply = "REPLY",
  RoleUser = "ROLE_USER",
  Task = "TASK",
  TaskRelation = "TASK_RELATION",
  TaskType = "TASK_TYPE",
}
